package www.bwsensing.com;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import www.bwsensing.com.common.utills.ApplicationContextUtils;

/**
 * @author 朱永杰
 */
@EnableAsync
@EnableScheduling
@ComponentScan(value = {"com.alibaba.cola","www.bwsensing.com"})
@MapperScan("www.bwsensing.com.**.**.database")
@SpringBootApplication
public class DataCollectionApplication
{
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(DataCollectionApplication.class, args);
        ApplicationContextUtils.setApplicationContext(applicationContext);
    }
}
